home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / mrcry204.zip / MATHL.H < prev    next >
C/C++ Source or Header  |  1991-03-04  |  3KB  |  74 lines

  1. /*    mathl.h
  2.  
  3.     Definitions for the long double version
  4.     of the math floating point package.
  5.  
  6.     Copyright (c) Borland International 1989
  7.     All Rights Reserved.
  8. */
  9.  
  10. /*----------------------------------------------------------------*\
  11. This file is a modification of <math.h>, with declarations for
  12. long double functions as recommended by ANSI X3J11.  All of the
  13. functions below are currently supported.
  14.  
  15. Error handling is somewhat different from the TC <math.h>
  16. functions, but within the ANSI guidelines.  If <math.h> function
  17. have a domain or range error, _matherr is called, and errno is
  18. set.  The functions in this file do not call any error handlers
  19. or set errno.  When an overflow or underflow occurs, infinities
  20. and zeroes are used appropriately.  If no reasonable value can be
  21. found, NAN (Not-A-Number) is used.
  22.  
  23. \*----------------------------------------------------------------*/
  24.  
  25. #if __STDC__
  26. #define _Cdecl
  27. #else
  28. #define _Cdecl    cdecl
  29. #endif
  30.  
  31. #undef _Cdecl
  32. #define _Cdecl pascal
  33.  
  34. long double    _Cdecl acosl  (long double x);
  35. long double    _Cdecl asinl  (long double x);
  36. long double    _Cdecl atanl  (long double x);
  37. long double    _Cdecl atan2l (long double y, long double x);
  38. long double    _Cdecl atofl  (const char *s);
  39. long double    _Cdecl ceill  (long double x);
  40. long double    _Cdecl cosl   (long double x);
  41. long double    _Cdecl coshl  (long double x);
  42. long double    _Cdecl expl   (long double x);
  43. long double    _Cdecl fabsl  (long double x);
  44. long double    _Cdecl floorl (long double x);
  45. long double    _Cdecl fmodl  (long double x, long double y);
  46. long double    _Cdecl frexpl (long double x, int *exponent);
  47. long double    _Cdecl ldexpl (long double x, int exponent);
  48. long double    _Cdecl logl   (long double x);
  49. long double    _Cdecl log10l (long double x);
  50. long double    _Cdecl modfl  (long double x, long double *ipart);
  51. long double    _Cdecl powl   (long double x, long double y);
  52. long double    _Cdecl sinl   (long double x);
  53. long double    _Cdecl sinhl  (long double x);
  54. long double    _Cdecl sqrtl  (long double x);
  55. long double    _Cdecl strtodl(const char *s, char **endptr);
  56. long double    _Cdecl tanl   (long double x);
  57. long double    _Cdecl tanhl  (long double x);
  58.  
  59. #if !__STDC__
  60. long double    _Cdecl hypotl(long double x, long double y);
  61. long double    _Cdecl polyl (long double x, int degree, long double coeffs[]);
  62. long double    _Cdecl pow10l(int p);
  63.  
  64. struct complexl        /* as used by "cabsl" function */
  65. {
  66.     long double  x, y;
  67. };
  68.  
  69. #define cabsl(z)     (hypotl ((z).x, (z).y))
  70.  
  71. #endif    /* __STDC__ */
  72.  
  73. #undef _Cdecl
  74.